package vistor;

/**
 * @author shenhan
 * @create 2020/4/10 15:39
 * @description
 */
public class Cilent {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.attach(new Man());
        objectStructure.attach(new Man());
        objectStructure.attach(new Woman());
        final Success success = new Success();
        final Fail fail = new Fail();

        objectStructure.display(success);
        objectStructure.display(fail);
        final Wait wait = new Wait();
        objectStructure.display(wait);
    }
}
